package com.briup.estore.common.vo;


import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @Author briup-adam
 * @Date 2023/7/27 下午5:20
 * @Description 订单展示信息视图对象
 **/
public class OrderInfoVO {

    /**
     * 订单编号
     */
    private String id;
    /**
     * 订单状态
     * 1.已创建未支付
     * 2.已支付未发货
     * 3.已发货未收货
     * 4.已收货
     * 5.已关闭 只能关闭 已创建未支付的订单
     */
    private Integer status;
    /**
     * 下单用户名
     */
    private String username;
    /**
     * 下单时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Timestamp createDate;

    /**
     * 收件人
     */
    private String receiveUsername;
    /**
     * 收货地址
     */
    private String receiveAddress;
    /**
     * 收货人联系方式
     */
    private String receivePhone;
    /**
     * 订单总额
     */
    private BigDecimal totalPrice=new BigDecimal(0);

    /**
     * 订单商品数
     */
    private Integer totalNum=0;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }


    public String getReceiveUsername() {
        return receiveUsername;
    }

    public void setReceiveUsername(String receiveUsername) {
        this.receiveUsername = receiveUsername;
    }

    public String getReceiveAddress() {
        return receiveAddress;
    }

    public void setReceiveAddress(String receiveAddress) {
        this.receiveAddress = receiveAddress;
    }

    public String getReceivePhone() {
        return receivePhone;
    }

    public void setReceivePhone(String receivePhone) {
        this.receivePhone = receivePhone;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Integer getTotalNum() {
        return totalNum;
    }

    public void setTotalNum(Integer totalNum) {
        this.totalNum = totalNum;
    }

    public Timestamp getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Timestamp createDate) {
        this.createDate = createDate;
    }
}
